package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.IncentiveSystemMapper;
import com.hcb.micro.dto.IncentiveSystem;
import com.hcb.micro.service.IIncentiveSystemService;

@Service("IncentiveSystemService")
public class IncentiveSystemServiceImpl implements IIncentiveSystemService {

	@Autowired
	IncentiveSystemMapper incentiveSystemMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return incentiveSystemMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(IncentiveSystem record) {
		return incentiveSystemMapper.insert(record);
	}

	@Override
	public int insertSelective(IncentiveSystem record) {
		return incentiveSystemMapper.insertSelective(record);
	}

	@Override
	public IncentiveSystem selectByPrimaryKey(Integer id) {
		return incentiveSystemMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(IncentiveSystem record) {
		return incentiveSystemMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(IncentiveSystem record) {
		return incentiveSystemMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<IncentiveSystem> selectByPara(Map<String, Object> para) {
		return incentiveSystemMapper.selectByPara(para);
	}

	@Override
	public IncentiveSystem selectCurrent(Float conditionPrice) {
		return incentiveSystemMapper.selectCurrent(conditionPrice);
	}

	@Override
	public IncentiveSystem selectNext(Float conditionPrice) {
		return incentiveSystemMapper.selectNext(conditionPrice);
	}

}
